package com.mall.ibatis.persistence.iface;

import java.sql.SQLException;
import java.util.List;

import com.mall.ibatis.bean.Method;
import com.mall.ibatis.bean.Operator;

public interface MethodDAO {
	//方法列表加载
	public List<Method> selectAllMethod();
	//方法增加
	public String addMethod(Method method);
	//方法更新
	public int updateMethod(Method method);
	//方法删除
	public int deleteMethod(String id) throws SQLException;
	//方法的Id查找有哪些用户
	public List<Operator> selectUserList(String methodId);
	//获取放法的Id号
	public String getMethodId();
	
}
